<?php
/**
 * Created by PhpStorm.
 * User: yuchong
 * Date: 15-4-28
 * Time: 下午3:43
 */
class Type_model extends MY_Model {

    public function __construct() {
        $this->_table = 'db_type';
        parent::__construct();
    }


    /**
     * 获取标签列表
     */
    public function getlist($tagname=''){
        $tagname && $this->db->like('tagname',$tagname);
        $this->db->order_by('catid', 'desc');
        $query = $this->db->get($this->_table);
        if ($query->num_rows() > 0) {
            return $query->result_array();
        } else {
            return false;
        }
    }














}